<?php
/**
 * 项目审批操作
 */
require_once("../global.inc.php");

class SysProjectVerifyClass extends SystemFrameWork{
	/**
	 * 预立项申请对象
	 *
	 * @var obj
	 */
	var $obj_project;
	/*
	 *公司
	 */
	var $obj_company;
	/**
	 * 验证对象
	 *
	 * @var obj
	 */
	var $obj_validate;
	/**
	 * 分页对象
	 *
	 * @var obj
	 */
	var $obj_page;
	
	function main(){
		/**
		 * 创建信息对象
		 */
		if (!is_object($this->obj_company)){
			require_once ("company.class.php");
			$this->obj_company = new CompanyClass();
		}
		/**
		 * 客户公司
		 */
		if (!is_object($this->obj_project)){
			require_once ("project.class.php");
			$this->obj_project = new ProjectClass();
		}
		/**
		 * 创建验证对象
		 */
		if (!is_object($this->obj_validate)){
			require_once("commonvalidate.class.php");
			$this->obj_validate = new CommonValidate();
		}
		/**
		 * 初始化分页类
		 */
		if (!is_object($this->obj_page)){
			require_once("commonpage.class.php");
			$this->obj_page = new CommonPage();
		}
		
		switch($this->_input['action']){
			case "ajax_list":
				$this->_ajax_list();
				break;
			case "mylist":
				$this->_mylist();
				break;
			case "createylx":
				$this->_createylx();
				break;
			case "createlx":
				$this->_createlx();
				break;
			case "creategb":
				$this->_creategb();
				break;
			default:
				$this->_list();
		}
	}
	/**
	 * 列表
	 */
	function _list(){
		$this->_ajax_list();
	}
	
	/**
	 * ajax类表
	 */
	function _ajax_list(){
		$this->showpage('sys_project_verify.list');
	}
	
	/**
	 * 我的列表
	 */
	function _mylist(){
		$this->showpage('sys_project_verify.mylist');
	}	
	
	/**
	 * 创建预立项
	 */
	function _createylx(){
		$this->showpage('sys_project_verify.createylx');
	}	
	
	/**
	 * 创建立项
	 */
	function _createlx(){
		$this->showpage('sys_project_verify.createlx');
	}	
	
	/**
	 * 创建关闭
	 */
	function _creategb(){
		$this->showpage('sys_project_verify.creategb');
	}	

}
$project = new SysProjectVerifyClass();
$project->main();
unset($project);
?>